# HackerPort driver for Linux
# version 0.7.2 date 2007-05-04
# part of the hacker port project - http[s]://stefan.schuermans.info/hackerport/
# Copyright (C) 2003-2007 Stefan Schuermans <stefan@schuermans.info>
# Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html

KERNEL_VER  := $(shell if [ "$$KERNEL_VER" != "" ]; then echo $$KERNEL_VER; else uname -r; fi)
KERNEL_SRC  := /lib/modules/$(KERNEL_VER)/build
PWD := $(shell pwd)
EXTRA_CFLAGS=-Wall

obj-m := hkp_drv.o

default:
	$(MAKE) -C $(KERNEL_SRC) SUBDIRS=$(PWD) modules

clean:
	rm -f *.[oas] .*.flags *.ko .*.cmd .*.d .*.tmp *.mod.c 
	rm -rf .tmp_versions

